package t2.server.xbee;

import com.rapplogic.xbee.api.XBeeAddress64;


public class XBeeData {
    private XBeeAddress64 addr = null;
    private String nodeId = null;
    private int deviceType = -1;
    private int numberOfChildren = -1;

    public XBeeData(XBeeAddress64 addr, String nodeId, int deviceType) {
        this.setAddr(addr);
        this.setNodeId(nodeId);
        this.setDeviceType(deviceType);
        setNumberOfChildren(-1);
    }

    public XBeeData() {
        setAddr(null);
        setNodeId(null);
        setDeviceType(-1);
        setNumberOfChildren(-1);
    }

    public XBeeAddress64 getAddr() {
        return addr;
    }

    public void setAddr(XBeeAddress64 addr) {
        this.addr = addr;
    }

    public String getNodeId() {
        return nodeId;
    }

    public void setNodeId(String nodeId) {
        this.nodeId = nodeId;
    }

    public int getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(int deviceType) {
        this.deviceType = deviceType;
    }

    public int getNumberOfChildren() {
        return numberOfChildren;
    }

    public void setNumberOfChildren(int numberOfChildren) {
        this.numberOfChildren = numberOfChildren;
    }
}